package com.zan.framework.beans.factory;

/**
 * @Author Zan
 * @Create 2024/4/28 18:05
 * @Description : IOC容器父接口
 * @ClassName: BeanFactory
 */
public interface BeanFactory {

    //根据bean对象的名称获取bean对象
    Object getBean(String name) throws Exception;

    //根据bean对象的名称获取bean对象，并进行类型转换
    <T> T getBean(String name, Class<? extends T> clazz) throws Exception;
}
